import request from "@/utils/request";
//资金调度列表
export function getCapitalDispatchList(params) {
  return request({
    url: "/fundDispatch",
    method: "get",
    params,
  });
}
//资金调度新增
export function addCapitalDispatch(data) {
  return request({
    url: `/fundDispatch`,
    method: "post",
    data,
  });
}
//资金调度修改
export function editCapitalDispatch(data) {
  return request({
    url: `/fundDispatch/${data.id}`,
    method: "put",
    data,
  });
}
//资金调度删除
export function deleteCapitalDispatch(data) {
  return request({
    url: `/fundDispatch/${data.id}`,
    method: "delete",
    data,
  });
}
//资金调度审核
export function auditCapitalDispatch(data) {
  return request({
    url: `/fundDispatch/review`,
    method: "post",
    data,
  });
}
//换汇汇率列表
export function getExchangeRateList(params) {
  return request({
    url: "/exchangeRateChannel",
    method: "get",
    params,
  });
}
//更新渠道汇率
export function updateExchangeRate(data) {
  return request({
    url: `/exchangeRateChannel`,
    method: "POST",
    data,
  });
}
//导入汇率
export function importExchangeRate(data) {
  return request({
    url: `/exchangeRateChannel/batch/import`,
    method: "POST",
    data,
  });
}
//换汇汇率设置新增
export function setExchangeRate(data) {
  return request({
    url: `/exchangeRateChannelSetting`,
    method: "POST",
    data,
  });
}
//换汇汇率渠道删除
export function deleteExchangeRate(data) {
  return request({
    url: `/exchangeRateChannelSetting/batch/destroy`,
    method: "POST",
    data,
  });
}
